module ElinkHelper
  def enlace_for_elink(elink)
    onClick = "onclick=\"marcarElink(#{elink.id}); desvanecerElink(#{elink.id});\""
    href = "href=\"#{elink.elink}\""
    clase = 'class="elink"'
    id = "id=\"elink-#{elink.id}\""

    "<a #{href} #{clase} #{id} #{onClick}>#{elink.titulo}</a>"
  end
end
